﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<VietThuongLMS.Areas.Admin.Models.LogOnModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<style type="text/css">
form {
    margin: 0 0 20px;
}
.form-horizontal .control-group {
    margin-bottom: 20px;
}
.form-horizontal .control-group:before, .form-horizontal .control-group:after {
    content: "";
    display: table;
    line-height: 0;
}
.form-horizontal .control-label {
    text-align: left;
}
.form-horizontal .control-label {
    float: left;
    padding-top: 5px;
    text-align: right;
    width: 160px;
}
label {
    display: block;
    margin-bottom: 5px;
}
label, input, button, select, textarea {
    font-size: 14px;
    font-weight: normal;
    line-height: 20px;
}

textarea, select, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input, .fileupload-new .input-append .btn-file {
    border: 1px solid #DDDDDD;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
    
    background-color: #F7F7F8;
    border: 1px solid rgba(255, 255, 255, 0);
    height: 36px;
    line-height: 28px;
    margin: 0 0 3px;
    overflow: hidden;
    padding: 5px;
    transition: all 0.3s ease-in-out 0s;
    width: 85%;
}
input:focus
{
    background: none repeat scroll 0 0 #33BEE5;
    color: #FFFFFF;
}
.field-validation-error 
{
    color: Red;
}
</style>

    <div class="wrap_cont_nav">
        <div class="cont_nav">
            <a href='<%=ResolveUrl("~/")%>'>Trang chủ</a>&nbsp;/&nbsp;Đăng nhập
        </div>
    </div>
    <div class="container">
        <section id="middle">
					<div class="middle_inner">
<!-- __________________________________________________ Start Content -->

							<section id="middle_content">

<div class="login-form" style="width: 330px; margin: 0 auto; border: 1px solid #CCCCCC;
        padding: 20px; background-color: White;">
        <h2>
            <%=Resources.Global.dang_nhap%></h2>

            <% Html.EnableClientValidation();
               using (Html.BeginForm("DangNhap", "Home", FormMethod.Post, new { @class = "form-horizontal", @id = "formLogin", @name = "formLogin" }))
               {
                   Html.ValidationSummary(true); %>
        <div class="control-group">
            <label class="control-label" for="inputUser" style="width: 75px">
                <%=Resources.Global.ten_tai_khoan%></label>
            <div class="controls" style="margin-left: 90px;">
                <%: Html.TextBoxFor(t => t.UserName, new { id = "userName", placeholder = "..." })%>
                <%: Html.ValidationMessageFor(m => m.UserName)%>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputPassword" style="width: 75px">
                <%=Resources.Global.mat_khau%></label>
            <div class="controls" style="margin-left: 90px;">
                <%: Html.PasswordFor(t => t.Password, new { id = "passWord", placeholder = "..." })%>
                <%: Html.ValidationMessageFor(m => m.Password)%>
            </div>
        </div>
        <div class="control-group">
            <div class="controls" style="margin-left: 90px;">
                <label class="checkbox">
                    <%: Html.CheckBoxFor(m => m.RememberMe) %> <%=Resources.Global.ghi_nho%>
                </label>
            </div>
        </div>
        <div class="control-group">
            <div class="controls" style="margin-left: 90px;">
                <button id="Button1" name="loginSubmit" type="submit" class="button">
                <%=Resources.Global.dang_nhap%></button>
            </div>
        </div>
        <% } %>
    </div>
    </div>
    </section>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <title><%=Resources.Global.title%> - <%=Resources.Global.dang_nhap%></title>
    <script type="text/javascript" src="<%: Url.Content("~/Scripts/MicrosoftAjax.js") %>"></script>
    <script type="text/javascript" src="<%: Url.Content("~/Scripts/MicrosoftMvcValidation.js") %>"></script>
</asp:Content>
